package com.mall.vo;

import cn.hutool.core.util.DesensitizedUtil;
import com.baomidou.mybatisplus.annotation.TableId;
import com.mall.note.Sensitize;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description
 * @ClassName SearchUserVo
 * @Author cxx
 * @Date 2023/6/10 11:36
 * @Version 1.0
 */
@Data
public class SearchUserVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户名
     */

    private String username;
    /**
     * 用户真实名
     */
    @Sensitize(type = DesensitizedUtil.DesensitizedType.CHINESE_NAME)
    private String trueName;
    /**
     * 密码
     */
    @Sensitize(type = DesensitizedUtil.DesensitizedType.PASSWORD)
    private String password;


    /**
     * 性别
     */

    private String sex;

    /**
     * 电话
     */

    @Sensitize(type = DesensitizedUtil.DesensitizedType.MOBILE_PHONE)
    private String phone;

    /**
     * 邮箱
     */

    @Sensitize(type = DesensitizedUtil.DesensitizedType.EMAIL)
    private String email;


    /**
     * 上次登录时间
     */
    private LocalDateTime loadDate;

    /**
     * 用户状态 0禁用1正常
     */
    private String status;
}
